<template>
  <ant-modal
    modalWidth="576"
    modalHeight="500"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="24">
          <a-form-model-item label="请选择发布范围" prop="step">
            <select-user selectModel="multi" v-model="form.selectUsers"></select-user>
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-divider orientation="left">操作提示</a-divider>
      <div>
        <a-icon type="check" />发布会覆盖上次已发布人员范围，<b>请勿在模板使用过程中重新发布范围</b><br>
        <a-icon type="check" />发布后会重置人员引导进度，所有人进度清空<br>
        <a-icon type="check" />如非紧急必要情况，请勿在模板发布状态操作用户发布范围
      </div>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        发布
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import ModGuideInfoAddForm from './ModGuideInfoForm'
export default {
  ...ModGuideInfoAddForm
}
</script>
